package com.example.service;

import com.example.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 晨辰沉宸尘
 * @since 2021-11-03
 */
public interface SysUserService extends IService<SysUser> {

    SysUser getByUsername(String username);

    String getUserAuthorityInfo(Long userId);

    void clearUserAuthorityInfo(String username);

    void clearUserAuthorityInfoByRoleId(Long roleId);       //role发生改变的时候清除缓存

    void clearUserAuthorityInfoByMenuId(Long menuId);       //menu发生改变的时候清除缓存

}
